package com.ruoyi.boss.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户详情-充值记录-新增对象 user_recharge_records
 * 
 * @author rui
 * @date 2025-08-18
 */
public class UserRechargeRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充值记录ID */
    private Long rechargeId;

    /** 关联用户ID */
    private Long userId;

    /** 充值流水号 */
    @Excel(name = "充值流水号")
    private String rechargeSerial;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeTime;

    /** 充值本金金额（元） */
    @Excel(name = "充值本金金额", readConverterExp = "元=")
    private BigDecimal principalAmount;

    /** 赠送金额（元） */
    @Excel(name = "赠送金额", readConverterExp = "元=")
    private BigDecimal giftAmount;

    /** 充值折扣 */
    @Excel(name = "充值折扣")
    private Long discountRate;

    /** 充值渠道 */
    @Excel(name = "充值渠道")
    private Long rechargeChannel;

    /** 第三方充值流水号 */
    @Excel(name = "第三方充值流水号")
    private String thirdPartySerial;

    /** 总充值金额 */
    private BigDecimal totalAmount;

    /** 记录创建时间 */
    private Date createdAt;

    /** 记录更新时间 */
    private Date updatedAt;

    public void setRechargeId(Long rechargeId) 
    {
        this.rechargeId = rechargeId;
    }

    public Long getRechargeId() 
    {
        return rechargeId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRechargeSerial(String rechargeSerial) 
    {
        this.rechargeSerial = rechargeSerial;
    }

    public String getRechargeSerial() 
    {
        return rechargeSerial;
    }

    public void setRechargeTime(Date rechargeTime) 
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }

    public void setPrincipalAmount(BigDecimal principalAmount) 
    {
        this.principalAmount = principalAmount;
    }

    public BigDecimal getPrincipalAmount() 
    {
        return principalAmount;
    }

    public void setGiftAmount(BigDecimal giftAmount) 
    {
        this.giftAmount = giftAmount;
    }

    public BigDecimal getGiftAmount() 
    {
        return giftAmount;
    }

    public void setDiscountRate(Long discountRate) 
    {
        this.discountRate = discountRate;
    }

    public Long getDiscountRate() 
    {
        return discountRate;
    }

    public void setRechargeChannel(Long rechargeChannel) 
    {
        this.rechargeChannel = rechargeChannel;
    }

    public Long getRechargeChannel() 
    {
        return rechargeChannel;
    }

    public void setThirdPartySerial(String thirdPartySerial) 
    {
        this.thirdPartySerial = thirdPartySerial;
    }

    public String getThirdPartySerial() 
    {
        return thirdPartySerial;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rechargeId", getRechargeId())
            .append("userId", getUserId())
            .append("rechargeSerial", getRechargeSerial())
            .append("rechargeTime", getRechargeTime())
            .append("principalAmount", getPrincipalAmount())
            .append("giftAmount", getGiftAmount())
            .append("discountRate", getDiscountRate())
            .append("rechargeChannel", getRechargeChannel())
            .append("thirdPartySerial", getThirdPartySerial())
            .append("totalAmount", getTotalAmount())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
